<template>
  <div>
    <!-- 面包屑导航 -->
    <breadcrumb-nav>
      <template v-slot:firstMenu>身份认证</template>
      <template v-slot:secondMenu>商户认证</template>
    </breadcrumb-nav>

    <!-- 卡片视图 -->
    <el-card>
      <el-table :data="rightsList" border stripe>
        <el-table-column type="index"></el-table-column>
        <el-table-column prop="authName" label="商户名称"></el-table-column>
        <el-table-column prop="path" label="商户描述"></el-table-column>
        <el-table-column prop="level" label="相关文件">
          <template slot-scope="scope">
            <el-tag v-if="scope.row.level === '0'">一级</el-tag>
            <el-tag v-else-if="scope.row.level === '1'" type="success">二级</el-tag>
            <el-tag v-else type="warning">三级</el-tag>
          </template>
        </el-table-column>
        <el-table-column label="操作" width="300px">
          <template slot-scope="scope">
            <!-- 删除按钮 -->
            <agreement-remove :agreement-id="scope.row.id" @update-list="updateAgreementList"/>
          </template>
        </el-table-column>
      </el-table>
    </el-card>
  </div>
</template>

<script>
/**
 * @author 太阳当空丶赵
 * @date 2022/11/16-16:31
 * @version 1.0.0
 */
import BreadcrumbNav from "../common/BreadcrumbNav";
import AgreementRemove from "@/components/agreement/agreementChildComponents/AgreementRemove.vue";
export default {
  name: "userAudit",
  components:{AgreementRemove, BreadcrumbNav}
}
</script>
